/*
 * @copyright fxsen <br/>
 * @date 2022/3/31 15:54 <br/>
 * @email <a href="mailto:fxsen@foxmail.com">
 * @author fxsen
 */
package com.fxsen.commons.sysmanager.core.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fxsen.commons.core.base.common.entity.BaseEntity;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;

/**
 * 部门表
 * @author fxsen
 * @date 2022/3/31 15:54
 * @email <a href="mailto:fxsen@foxmail.com">
 */

@ApiModel("部门")
@TableName("sys_department")
@TableComment(value = "部门表")
@Entity
public class Department extends BaseEntity {
    @ApiModelProperty("上级id")
    @TableField(value = "pid")
    @Column(name = "pid", type = MySqlTypeConstant.VARCHAR, comment = "上级id",length = 32)
    private String pid;
    @ApiModelProperty("部门编码")
    @TableField(value = "code")
    @Column(name = "code", type = MySqlTypeConstant.VARCHAR, comment = "部门编码",length = 50)
    private String code;
    @ApiModelProperty("部门名称")
    @TableField(value = "name")
    @Column(name = "name", type = MySqlTypeConstant.VARCHAR, comment = "部门名称",length = 50)
    private String name;
    @ApiModelProperty("部门负责人")
    @TableField(value = "leader")
    @Column(name = "leader", type = MySqlTypeConstant.VARCHAR, comment = "部门负责人",length = 50)
    private String leader;
    @ApiModelProperty("负责人电话")
    @TableField(value = "phone")
    @Column(name = "phone", type = MySqlTypeConstant.VARCHAR, comment = "负责人电话",length = 20)
    private String phone;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
